package com.curvebreakers.wheresmystuff.model;

public interface DBResultListener {
	
	/**
	 * Sent to a listener when a successful result is received. (i.e. user successfully logged in,
	 * entries found for search, etc.) 
	 * 
	 * @param obj The type of obj is dependent on the method called on the
	 * DatabaseController. See the documentation for the method called.
	 */
	public void onDBResultReceived(Object obj);
	
	/**
	 * Sent to a listener when on an unsuccessful outcome. (i.e. invalid password, no internet
	 * connection, etc.)
	 * 
	 * @param message The reason for the unsuccessful outcome. (should usually be displayed to the user through a toast)
	 * 	
	 */
	public void onDBRequestFailure(String message);
}
